/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.uc.client;

import java.util.Collection;
import java.util.List;

import com.xy.biz.uc.domain.req.GetPositionByUserIdRequest;
import com.xy.biz.uc.domain.req.GetPositionRequest;
import com.xy.biz.uc.domain.req.ListPositionRequest;
import com.xy.biz.uc.domain.resp.GetPositionResponse;
import com.xy.lang.domain.Page;
import com.xy.lang.domain.Result;
/**
 * 
 * 
 * @author zgy
 * @date 2021-9-23
 */
public interface PositionClient {
	
	/**
	 * 查找一个
	 *
	 * @param request
	 * @return
	 */
	Result<GetPositionResponse> getPosition(GetPositionRequest request);

	Result<GetPositionResponse> getPositionByUserId(GetPositionByUserIdRequest request);
	
	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 * @return
	 */
	Result<List<GetPositionResponse>> listPositionById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 * @return
	 */
	Result<List<GetPositionResponse>> listPositionByUserId(Collection<Long> collection);
	
	/**
	 * 查找多个
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<List<GetPositionResponse>> listPosition(ListPositionRequest request);
	
	/**
	 * 统计个数
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<Integer> countPosition(ListPositionRequest request);
	
	/**
	 * 分页查找
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<Page<GetPositionResponse>> pagePosition(ListPositionRequest request);
	
}
